using BSDS.Core.Data.Local.Csv.Serialization;
using BSDS.Core.Data.Local.Xml.Seralization;

namespace BSDS.Core.Data.Local
{
    public class LocalDataSerializerFactory
    {
        public ISerializer Create(DataFormat format)
        {
            if (format == DataFormat.Xml)
            {
                return new XmlFormatSerializer();
            }

            return new CsvFormatSerializer(format);
        }
    }
}